<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="system">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_system('bulletin'); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>系统公告</h2></div>
                <div class="sect">
                    <form id="login-user-form" method="post" enctype="multipart/form-data" action="/manage/system/bulletin.php">
					<input type="hidden" name="id" value="<?php echo $system['id']; ?>" />
						<div class="wholetip clear"><h3>1、图片轮播设置</h3></div>
                        <div class="field">
       
                        <ul id="lunbo_upload">
                        <li>
                        <img class="lunbo_img" id="lunbo_img_1" <?php if($lunbo['value']['image1']){?> src="<?php echo lunbo_image($lunbo['value']['image1']); ?>" <?php }?>/>
                        <input type="file" size="30" name="upload_image" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(1);">删除</a>
                        </li>
                        <li>
                         <img class="lunbo_img" id="lunbo_img_2" <?php if($lunbo['value']['image2']){?>src="<?php echo lunbo_image($lunbo['value']['image2']); ?>" <?php }?> />
                        <input type="file" size="30" name="upload_image1" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(2);">删除</a>
                        </li>
                        <li>
                         <img class="lunbo_img" id="lunbo_img_3" <?php if($lunbo['value']['image3']){?>src="<?php echo lunbo_image($lunbo['value']['image3']); ?>" <?php }?> />
                        <input type="file" size="30" name="upload_image2" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(3);">删除</a>
                        </li>
                        </ul>

                        </div>
						<div class="wholetip clear"><h3>2、全局公告</h3></div>
                        <div class="field">
                            <label>全局公告</label>
                            <div style="float:left;"><textarea cols="45" rows="5" name="bulletin[0]" id="system-create-location" class="f-textarea editor"><?php echo htmlspecialchars($INI['bulletin'][0]); ?></textarea></div>
                        </div>
						<div class="wholetip clear"><h3>3、城市公告</h3></div>
					<?php if(is_array($hotcities)){foreach($hotcities AS $one) { ?>
                        <div class="field">
                            <label><?php echo $one['name']; ?></label>
                            <div style="float:left;"><textarea cols="45" rows="5" name="bulletin[<?php echo $one['id']; ?>]" id="system-create-location<?php echo $one['id']; ?>" class="f-textarea editor"><?php echo htmlspecialchars($INI['bulletin'][$one['id']]); ?></textarea></div>
						</div>
					<?php }}?>
                        <div class="act">
                            <input type="submit" value="保存" name="commit" id="system-submit" class="formbutton"/>
                        </div>
                    </form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->


<script type="text/javascript">
window.x_init_hook_page = function() {
	X.team.limageremovecall = function(id) {
		jQuery('#lunbo_img_'+id).remove();
	};
	X.team.limageremove = function(id) {
		return !X.get(WEB_ROOT + '/ajax/misc.php?action=limageremove&id='+id);
	};
};
</script>

<?php include template("manage_footer");?>
